import request from '@/utils/request'

export function login(id, sign) {
  return request({
    url: 'support/auth/login',
    method: 'get',
    params: {
      id,
      sign,
      category: 0
    }
  })
}

export function getInfo(token) {
  return request({
    url: 'support/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/support/auth/logout',
    method: 'get'
  })
}
